<h1>Blog</h1>

<?php foreach($this->posts as $post):?>
<h2><?php echo $post['title']; ?></h2>
<?php /*<p><?php echo $post['content']; ?></p>*/ ?>
<p>
by <?php echo $post['Author']['nickname']; ?> at <?php echo $post['created_at']; ?>
    <a href="<?php
    echo $this->url(
        array('module' => 'blog', 'controller'=>'post', 'action'=>'show', 'post_id'=>$post['id']),
        'default', true)
        ?>"><?php echo $this->translate('read_more'); ?></a>


    <a href="<?php
    echo $this->url(
        array('module' => 'blog', 'controller'=>'comment', 'action'=>'index', 'post_id'=>$post['id']),
        'default', true)
        ?>"><?php echo $this->translate('comments'); ?></a>
</p>
<?php endforeach;?>




<?php echo $this->paginationControl($this->posts); ?>
